]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
panel: fix size of battery percentage label
authorBjörn Daase <bjoern@daase.net>
Sat, 23 May 2020 20:48:47 +0000 (22:48 +0200)
committerFlorian Müllner <florian.muellner@gmail.com>
Sun, 24 May 2020 16:37:57 +0000 (16:37 +0000)
Adjust the label of the (optional) battery percentage in the top
bar to have the same size as all other text in the top bar.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2652

js/ui/status/power.js

index 624228c39dc1ad6e19b472e59aee0e529e674c24..d8b7da9c71bde6b21761201295e9855396f267b1 100644 (file)
@@ -139,7 +139,7 @@ class Indicator extends PanelMenu.SystemIndicator {
             label = _("%d\u2009%%").format(100);
         else
             label = _("%d\u2009%%").format(this._proxy.Percentage);
-        this._percentageLabel.clutter_text.set_markup('<span size="smaller">' + label + '</span>');
+        this._percentageLabel.text = label;
 
         // The status label
         this._item.label.text = this._getStatus();